#!/bin/bash
#关闭java进程
echo "Stopping ..."
#NAME="java -jar target/demo1-0.0.1-SNAPSHOT.jar"
pid=`ps -ef | grep "java -jar target/demo1-0.0.1-SNAPSHOT.jar" | grep -v grep | awk '{print $2}'`
if [ -n "$pid" ]
then
   echo "kill -9 的pid:" $pid
   kill -9 $pid
fi
